import {createWebHistory, createRouter} from 'vue-router'

import Son1 from '@/components/7路由动态参数/1.子组件.vue'
import Son2 from '@/components/7路由动态参数/2.子组件.vue'


// 定义路由路径
const routes = [
    {
        // 路径参数
        path: '/son1/:id',
        name: 'son1',
        component: Son1,
    },
]

const router = createRouter({
    history: createWebHistory(),
    routes,
    // /user/ 这种方式不再适用
    strict: true,
    // /User 不再适用
    sensitive: true
})

export default router
